package fr.umlv.m2.jee.pmlv.persistence.ldapLink;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

import fr.umlv.m2.jee.pmlv.persistence.cursus.Specialty;

@Embeddable
@SuppressWarnings("serial")
public class UserSpecialtyPK implements Serializable {
	/**User id*/
	@Column(name="uid")
	private String uid;
	/**Specialty*/
	@OneToOne
	@JoinColumn(name="specialty_id")
	private Specialty specialty;
	/**Role of a User in a subject*/
	/**Year concerned by the relation between the user and the subject*/
	@Column(name="year")
	private long year;
	
	public void setUid(String uid) {
		this.uid = uid;
	}
	public String getUid() {
		return uid;
	}
	public void setSpecialty(Specialty specialty) {
		this.specialty = specialty;
	}
	public Specialty getSpecialty() {
		return specialty;
	}
	public void setYear(long year) {
		this.year = year;
	}
	public long getYear() {
		return year;
	}	
}
